import type {  Options  } from '@/types/global';
import axios from 'axios';
import qs from 'query-string';




/**
 * 字典配置值选项查询响应
 */
export interface DictValueOptionsQueryResponse extends Options {
}



/**
 * 查询字典配置值
 */
export function getDictValueList(keys: string[]) {
  return axios.get<Record<string, Array<DictValueOptionsQueryResponse>>>('/infra/dict-value/list', {
    params: { keys },
    paramsSerializer: params => {
      return qs.stringify(params, { arrayFormat: 'comma' });
    }
  });
}

